| Conditions | 1 |
| Total Lines | 27 |
| Code Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import React from 'react' |
||
| 55 | |||
| 56 | export default function App () { |
||
| 57 | return ( |
||
| 58 | <Router> |
||
| 59 | <Route path='/' exact render={() => <Redirect to='/shell' />} /> |
||
| 60 | |||
| 61 | {algorithms.map((item, index) => ( |
||
| 62 | <Route |
||
| 63 | key={index} |
||
| 64 | exact |
||
| 65 | path={item.path} |
||
| 66 | render={() => ( |
||
| 67 | // <Layout |
||
| 68 | // length={item.data.length} |
||
| 69 | // content={ |
||
| 70 | <Visualizer |
||
| 71 | algorithm={item.algorithm} |
||
| 72 | name={item.name} |
||
| 73 | next={item.next} |
||
| 74 | speed={item.speed} |
||
| 75 | // /> |
||
| 76 | // } |
||
| 77 | /> |
||
| 78 | )} |
||
| 79 | /> |
||
| 80 | ))} |
||
| 81 | </Router> |
||
| 82 | ) |
||
| 84 |